<fieldset>
    <legend>Course information</legend>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="70%" style="border-right:1px #000000 groove;">
                 <input type="hidden" name="Courses[users_id]" value="<?php echo $model->users_id; ?>">
                <div class="row">
                    <div class="classrowLabel"><?php echo $form->labelEx($model, 'course_titile'); ?> </div>
                    <div class="rowControl"><?php echo $form->textField($model, 'course_titile', array('class' => 'input-xlarge requiredfield')); ?>                      
                        <a href="javascript:void(0)" id="course_titiles" onmouseover="getTolltipId(this.id);" rel="popover" data-content="<?php echo Message::COURSE_TITLE; ?>" data-original-title="<?php echo Message::SKILL_HELP; ?>"><img src="<?php echo ThemePath(); ?>/img/icons/icon_tooltip.gif"/></a>   </div><!-- row -->
                </div>
                <div class="classrowLabel"><label class="required" for="Courses_category_id">Category <span class="required">*</span></label></div>
                <div class="rowControl">	
                    <?php echo $form->dropDownList($model, 'category_id', CHtml::listData(Category::model()->findAll(array('condition' => 'status = ' . SkillConfig::STATUS_ACTIVE, 'order' => 'name ASC')), 'id', 'name'), array('empty' => 'Select Category', 'class' => 'selectbox requiredfield')); ?>
                </div>
                <div class="classrowLabel"><label for="Courses_difficulty_type">Difficulty Type<span class="required">*</span></label></div>
                <div class="rowControl">	
                    <?php echo $form->dropDownList($model, 'difficulty_type', array("1" => "Beginner", "2" => "Intermediate", "3" => "Advance"), array('class' => 'selectbox requiredfield')); ?>
                </div>

                <div class="classrowLabel"><label>Target Audience <span class="required">*</span></label></div>
                <div class="rowControl">	
                    <?php echo $form->dropDownList(TargetAudience::model(), 'classesTargetAudiences', CHtml::listData(TargetAudience::model()->findAll(array('condition' => 'status = ' . SkillConfig::STATUS_ACTIVE, 'order' => 'target_audience_name ASC')), 'id', 'target_audience_name'), array('multiple' => 'multiple', 'class' => 'selectbox', 'options' => getAllTargetAudience($model->id, 'course'))); ?>
                </div>
                <div class="row"><div class="classrowLabel"><label>Course Type<span class="required">*</span></label></div>
                    <div class="rowControl">	
                        <?php echo $form->dropDownList($model, 'course_type_id', CHtml::listData(ClassType::model()->findAll(array('condition' => 'status = ' . SkillConfig::STATUS_ACTIVE . ' AND id=' . COURSE_CLASS_TYPE, 'order' => 'id ASC')), 'id', 'name'), array('class' => 'selectbox requiredfield')); ?>
                    </div>
                </div>

            </td>
            <td width="30%" align="left" valign="top">
                <table width="347" border="0" cellpadding="5" cellspacing="5" style="margin-left:10px;">
                    <tr><td><p>Please indicate, in your opinion, the fun / learning quotient of your class</p></td></tr>
                    <tr> <td><?php echo $form->labelEx($modelFunLearning, 'fun'); ?></td> </tr>
                    <tr> <td><input type="text" readonly="readony"id="funlearing" value=" <?php echo $modelFunLearning->fun; ?>" name="FunLearningValue[fun]" style="font-weight: bold;background: #fff;cursor: none;padding: 0px;border:0; color:#000; font-weight:bold;box-shadow: none;">
                            <div id="slider-range-max" style="width: 64%;"></div><?php /*
                          $this->widget('CStarRating', array(
                          'name' => 'FunLearning[fun]',
                          'value' => $modelFunLearning->fun,
                          'minRating' => 0.5,
                          'ratingStepSize' => 0.5,
                          'maxRating' => 5,
                          ));
                         */ ?></td></tr>
                    <tr><td><?php echo $form->labelEx($modelFunLearning, 'learn'); ?></td></tr>
                    <tr><td>
                        <input type="text" readonly="readony" id="learingfun" value=" <?php echo $modelFunLearning->learn; ?>" name="FunLearningValue[learn]" style="font-weight: bold;background: #fff;cursor: none;padding: 0px;border:0; color:#000; font-weight:bold;box-shadow: none;">
                            <?php /*
                              $this->widget('CStarRating', array(
                              'name' => 'FunLearning[learn]',
                              'value' => $modelFunLearning->learn,
                              'minRating' => 0.5,
                              'ratingStepSize' => 0.5,
                              'maxRating' => 5,
                              ));
                             * <input type="hidden" id="funLearningfun" name="FunLearningValue[fun]" value=" <?php echo$modelFunLearning->fun; ?>">
                              <input type="hidden" id="funLearninglearn" name="FunLearningValue[learn]" value="<?php echo$modelFunLearning->learn; ?>">
                              <input type="hidden" id="tempfun" name="tempfun" value=" <?php echo$modelFunLearning->fun; ?>">
                              <input type="hidden" id="templearn" name="templearn" value="<?php echo$modelFunLearning->learn; ?>"><br/>
                             */ ?>
                            <div class="customeClassvalidate" id="funLearninglearnText"></div></td></tr> </table>
            </td>
        </tr>
    </table>
    <div class="row">
        <div class="classrowLabel"><?php echo $form->labelEx($model, 'course_tag'); ?> </div>
        <div class="rowControl">	
            <?php echo $form->dropDownList($model, 'course_tag', CHtml::listData(ClassCourseTags::model()->findAll(array('condition' => 'status = ' . SkillConfig::STATUS_ACTIVE, 'order' => 'id ASC')), 'id', 'tag_name'), array('multiple' => 'multiple', 'class' => 'selectbox requiredfield', 'options' => getAllTags($model->id,'course'))); ?>
            <a href="javascript:void(0)" id="class_tag" onmouseover="getTolltipId(this.id);" rel="popover" data-content="<?php echo Message::CLASSES_TAG; ?>" data-original-title="<?php echo Message::SKILL_HELP; ?>"><img src="<?php echo ThemePath(); ?>/img/icons/icon_tooltip.gif"/></a> 
        </div>
    </div>

    <div class="row">
        <div class="classrowLabel"><?php echo $form->labelEx($model, 'course_short_description'); ?>  <a href="javascript:void(0)" style="margin-left:-47px;" id="course_short_descriptions" onmouseover="getTolltipId(this.id);" rel="popover" data-content="<?php echo Message::COURSE_SHORT_DESC; ?>" data-original-title="<?php echo Message::SKILL_HELP; ?>"><img src="<?php echo ThemePath(); ?>/img/icons/icon_tooltip.gif"/></a>   </div>
        <div class="rowControl shortDescs"  style="clear: both;margin-bottom: 10px;">
            <?php echo $form->textArea($model, 'course_short_description', array('tabindex' => '2', 'class' => 'specialContent requiredfield', 'id' => 'course_short_description')); ?>			
        </div>
        <div class="customeClassvalidate shortDesc" ></div>
    </div>


    <div class="row">
        <div class="classrowLabel"><?php echo $form->labelEx($model, 'course_description'); ?>  <a href="javascript:void(0)" style="margin-left:-90px;"  id="course_descriptions" onmouseover="getTolltipId(this.id);" rel="popover" data-content="<?php echo Message::COURSE_DESC; ?>" data-original-title="<?php echo Message::SKILL_HELP; ?>"><img src="<?php echo ThemePath(); ?>/img/icons/icon_tooltip.gif"/></a> </div>
        <div class="rowControl shortDescs"  style="clear: both;margin-bottom: 10px;">
            <?php echo $form->textArea($model, 'course_description', array('tabindex' => '2', 'class' => 'specialContent requiredfield', 'id' => 'course_description')); ?>				
        </div>
        <div class="descritions customeClassvalidate"></div>
    </div>
    <div class="row">
        <div class="classrowLabel"><?php echo $form->labelEx($model, 'course_outcome'); ?> <a href="javascript:void(0)" style="margin-left:-95px;" id="course_outcomes" onmouseover="getTolltipId(this.id);" rel="popover" data-content="<?php echo Message::COURSE_OUTCOME; ?>" data-original-title="<?php echo Message::SKILL_HELP; ?>"><img src="<?php echo ThemePath(); ?>/img/icons/icon_tooltip.gif"/></a>   </div>           
        <div class="rowControl"  style="clear: both;margin-bottom: 10px;">
            <?php echo $form->textArea($model, 'course_outcome', array('tabindex' => '2', 'class' => 'specialContent requiredfield', 'id' => 'course_outcome')); ?>				
        </div>
        <div class="customeClassvalidate class_outcome" ></div></div>

    <div class="row">
        <div class="classrowLabel"><?php echo $form->labelEx($model, 'course_prerequisites'); ?><a href="javascript:void(0)" style="margin-left:-80px;" id="course_prerequisitess" onmouseover="getTolltipId(this.id);" rel="popover" data-content="<?php echo Message::COURSE_PREREQUISITES; ?>" data-original-title="<?php echo Message::SKILL_HELP; ?>"><img src="<?php echo ThemePath(); ?>/img/icons/icon_tooltip.gif"/></a>   </div>
        <div class="rowControl"  style="clear: both;margin-bottom: 10px;">
            <?php echo $form->textArea($model, 'course_prerequisites', array('tabindex' => '2', 'class' => 'specialContent requiredfield', 'id' => 'course_prerequisites')); ?>				
        </div>
        <div class="customeClassvalidate class_prerequisites" ></div>
    </div>
    <div class="row">
        <div class="classrowLabel"><?php echo $form->labelEx($model, 'certificate'); ?> </div>
        <div class="rowControl"><?php echo $form->dropDownList($model, 'certificate', array("0" => "No", "1" => "Yes"), array('style' => 'width:100px;')); ?>
            <?php echo $form->error($model, 'certificate'); ?>
        </div><!-- row -->
    </div>


</fieldset>